package hu.plajko.client;

import hu.plajko.shared.rpc.NotificationRPC;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface GreetingServiceAsync {

	void generate(String input, AsyncCallback<String> callback);

	void getNotifications(AsyncCallback<List<NotificationRPC>> callback);

	void updateNotification(NotificationRPC n, AsyncCallback<String> callback);

	void removeNotification(NotificationRPC n, AsyncCallback<Void> callback);

	void clearNotifications(AsyncCallback<Void> callback);

	void getData(String id, AsyncCallback<NotificationRPC> callback);

}
